package com.qyer.search.enums;

/**
 * User: Z J Wu Date: 2016/01/06 Time: 11:54 Package: com.qyer.search.enums
 */
public enum TagType {
  STANDARD(0), INNER(1), COUNTRY(8), CITY(9), CONTINENT(10), POI(3);

  private int typeId;

  TagType(int typeId) {
    this.typeId = typeId;
  }

  public int getTypeId() {
    return typeId;
  }

  public static TagType parseType(int typeCode) {
    switch (typeCode) {
      case 0:
        return STANDARD;
      case 1:
        return INNER;
      case 8:
        return COUNTRY;
      case 9:
        return CITY;
      case 10:
        return CONTINENT;
      case 3:
        return POI;
      default:
        return STANDARD;
    }
  }
}
